//
//  ProjectCommentListLine.m
//  nova
//
//  Created by user on 11/08/08.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "ProjectCommentListLine.h"


@implementation ProjectCommentListLine



@synthesize commentDescription;
@synthesize commentIcon;
@synthesize commentLabel;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
	self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
		
		commentIcon = [[UIImageView alloc] initWithFrame:CGRectMake(10, 5, 32, 32)];
		
		
		commentLabel = [[UILabel alloc] initWithFrame:CGRectMake(42, 0, 288, 30) ];
		commentLabel.numberOfLines = 1;
		commentLabel.font = [UIFont boldSystemFontOfSize: 15.0];
		commentLabel.textColor = [UIColor blackColor];		
		commentLabel.text = commentDescription;
		commentLabel.backgroundColor = [UIColor clearColor];
		
		[self.contentView addSubview:commentIcon ];		
		[self.contentView addSubview:commentLabel ];			
		
    }
    return self;
}

- (void) setComment{
	commentIcon.image = [UIImage imageNamed:@"commentsShadow.png"];	
}

- (void) setAdd{
	[commentLabel setBounds:CGRectMake(140, 5, 180, 32)];
	commentIcon.image = [UIImage imageNamed:@"addButton.png"];
}


- (void) setCommentDescription : (NSString *) name{
	commentDescription = name;
	commentLabel.text = commentDescription;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state.
}


- (void)dealloc {
    [super dealloc];
}
@end
